﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microhard.WeixinMP.Interfaces;
using System.Configuration;
using Microhard.WeixinMP.Models;
using Microhard.WeixinMP.Unities;
using Microhard.WeixinMP.Const;

namespace Microhard.WeixinMP.Impls
{
    public class WelcomeCommandImpl : BaseResponseImpl
    {

        protected override WeixinBaseData<object> CreateFeatureResponse(RequestServiceModel request, WeixinBaseData<object> response)
        {
            WeixinTxt welcome = new WeixinTxt();
            var currentAccount = request.WXMPAccountUser;
            //获得欢迎信息
            welcome.Content = "您好，很高兴为您服务,我们提供的服务如下:" + currentAccount.Welcome;
            response.MsgType = WeixinMsgType.Text; ;
            response.Content = welcome;
            response.FuncFlag = WeixinMsgType.FuncFlag_False;
            return response;
        }

        public override WeixinCommand Command
        {
            get
            {
                WeixinCommand cmm = new WeixinCommand();
                cmm.Command = WeixinConst.WELCOMETAG;
                cmm.Description = "欢迎使用";
                return cmm;
            }
        }
    }
}
